﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yuans.BinaryConfig.BlobIO
{
    public class RawBinBlobValueIO : BlobValueIO
    {
        public byte[] BlobValue { set; get; }
        public void ImportFile(string fileName)
        {
            if (File.Exists(fileName))
            {
                BlobValue = File.ReadAllBytes(fileName);
            }
        }
        public RawBinBlobValueIO(string fileName)
        {
            ImportFile(fileName);
        }
        public void ExportFile(string fileName)
        {
            File.WriteAllBytes(fileName, BlobValue);
        }
    }
}
